package com.csap.framework.integration.client.boot.autoconfigure;

import org.springframework.context.annotation.Import;
import org.springframework.stereotype.Component;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author yangchengfu
 * @description 启用多配置阿里云rocketmq注解
 * @dataTime 2020年-09月-22日 13:17:00
 **/
@Documented
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
@Import(RocketmqListenerImportBeanDefinitionRegistrar.class)
@Component
public @interface EnableRocketmqListener {
    /**
     * 订阅主题
     *
     * @return
     */
    String topic();

    /**
     * 标签
     *
     * @return
     */
    String tag();

    /**
     * 消息《即业务代码》
     *
     * @return
     */
    String key() default "";

}
